<table class="formTable">
<tbody>
{if isset($forms.id) && $forms.id != ''}
	<tr>
		<th>登録日時</th>
		<td>
			{$forms.r_date}
			<input type="hidden" name="forms[r_date]" value="{$forms.r_date}" />
		</td>
	</tr>
	<tr>
		<th>更新日時</th>
		<td>
			{$forms.u_date}
			<input type="hidden" name="forms[u_date]" value="{$forms.u_date}" />
		</td>
	</tr>
	<tr>
		<th>ID</th>
		<td>
			{$forms.id}
		</td>
	</tr>
{/if}
{assign var=key value='status'}
<tr{if isset($err[$key])} class="required"{/if}>
	<th class="must">状態</th>
	<td>
		{html_radios name='forms['|cat:$key|cat:']' options=$estate_sale->getStatusMap() selected=$forms[$key] separator='&nbsp;'}
		{if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
	</td>
</tr>
{assign var=key value='no'}
<tr{if isset($err[$key])} class="required"{/if}>
	<th class="must">物件番号</th>
	<td>
		<input type="text" name="forms[{$key}]" value="{$forms[$key]}" maxlength="64"/>
		{if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
	</td>
</tr>
{assign var=key value='class_id'}
<tr{if isset($err[$key])} class="required"{/if}>
	<th class="must">種別</th>
	<td>
		{foreach item=text key=value from=$estate_sale->getClassMap()}
		<input type="radio" name="forms[{$key}]" value="{$value}" {if $forms[$key] == $value}checked{/if} onClick="$('.part').{if $value == 1}show(){else}hide(){/if};"/>{$text}&nbsp;
		{/foreach}
		{if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
	</td>
</tr>
{assign var=key value='category_id'}
<tr{if isset($err[$key])} class="required"{/if}>
	<th class="must">種目</th>
	<td>
		<select name='forms[{$key}]'>
			<option value=''>選択してください</option>
			{html_options options=$estate_sale->getCategoryMap() selected=$forms[$key]}
		</select>
		{if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
	</td>
</tr>
{assign var=key value='name'}
<tr{if isset($err[$key])} class="required"{/if}>
	<th class="must">物件名</th>
	<td>
		<input type="text" name="forms[{$key}]" value="{$forms[$key]}" maxlength="255"/>
		{if isset($err[$key])}{$validate->getMessages($err[$key]) nofilter}{/if}
	</td>
</tr>
<tr>
	<th>特徴</th>
	<td>
		<select name="forms[special_id]">
			<option value=''>選択してください</option>
			{html_options options=$estate_sale->getSpecialMap() selected=$forms.special_id}
		</select>
	</td>
</tr>
</tbody>
</table>